<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Chat Demo</title>
    <link href="/static/css/bootstrap.min.css" rel="stylesheet">
    <script src="/static/js/jquery-3.2.1.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
</head>

<body>
<div class="container">
    <h1>Chat demo</h1>
    <div class="row">
        <div class="col-md-6">
            <form class="form" action="/demo">
                <div class="form-group">
                    <label>用户名</label>
                    <input type="text" class="form-control" name="user" id="user" placeholder="Username">
                </div>
                <div class="form-group">
                    <select class="form-control" name="demo">
                        <option value="refresh">Ajax, 刷新方式</option>
                        <option value="longpolling">Ajax, 轮询</option>
                        <option value="websocket">WebSocket</option>
                    </select>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-10">
                        <button type="submit" class="btn btn-default">Go!</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
</html>